package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.PageResult;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Orders;

import javax.servlet.http.HttpSession;

public interface OrderService  {
    void submit(Orders orders);


    /**
     * 历史订单查看
     */
    PageResult<DishDto> findPage(Long page, Long pageSize);

    /**
     * 后端查询订单分页
     */
    R All(Long page, Long pagesize, String number, String beginTime, String endTime);

    /**
     * 订单状态更新
     * @param orders
     * @return
     */

    String updateStatus(Orders orders);

}
